﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;



namespace Ccit.OA.Scheduler
{
    public partial class scheduler_mySch_frame : Ccit.Utils.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.Page.IsPostBack)
            {
                initPage();
            }
        }

        protected void lnbAdd_Click(object sender, EventArgs e)
        {
            Response.Redirect("./scheduler_mySch_edit.aspx");
        }

        public void initPage()
        {
            SchedulerBLL Bll = new SchedulerBLL();
            MsSchParam msParam = Bll.GetMsSchParamMes();
            if (msParam != null)
            {
                if (msParam.ShowCalendar == "0")
                {
                    tdTree.Attributes.Add("style", "display:block");
                }
                else
                {
                    tdTree.Attributes.Add("style", "display:none");
                    tdEdit.Attributes.Add("width", "100%");
                }
            }
            msParam = null;
            Bll = null;
        }

    }
}
